package cn.itcast.bos.service.promotion;

import java.util.Date;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.query.Procedure;

import cn.itcast.bos.domain.take_delivery.PageBean;
import cn.itcast.bos.domain.take_delivery.Promotion;

public interface PromotionService {

	public void save(Promotion model);

	public Page<Promotion> findpageData(Pageable pageable);
	@Path("/findpagedata")
	@GET
	@Procedure("application/json")
	public PageBean<Promotion> findPageData(@QueryParam("page") Integer page, @QueryParam("rows") Integer rows);

	public void updatastart(Date date);
}
